//
// Created by Castle-Moriarty on 2025/11/4.
//

#include <iostream>
using namespace std;

int student_count_global{0};

int add_student() {
    static int student_count{0};
    student_count++;
    return student_count;
}

int add_student_using_global_var() {
    student_count_global++;

    return student_count_global;
}

void some_other_function() {
    student_count_global--;
}

int main() {

    cout << "Student count:" << add_student() << endl;

    return 0;
}